home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekikoh Dennoh Club 1
/
Gekikoh Dennoh Club Vol. 1 (Japan).7z
/
Gekikoh Dennoh Club Vol. 1 (Japan) (Track 1).bin
/
tools
/
ebsx130
/
jismiror.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-12-11
|
378b
|
29 lines
/* JIS-漢字 文字列を、逆に並びかえる */
#include "common.h"
jischar *jismirror(jischar *jp)
{
jischar c,*ap,*bp;
ap=bp=jp;
while (*bp++) ;
bp--;
while (ap<bp) {
c=*ap;
*ap++=*--bp;
*bp=c;
}
return jp;
}
int injiskanji(jischar *jp)
{
jischar c;
while (c=*jp++) {
if (c>0x3000||(c&0xff00)==0x2300)
return -1;
}
return 0;
}